﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpage.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CinemaBookingWebsite.Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
        <ItemTemplate>

            <div class="col-lg-4" style="margin-bottom: 20px; height: 600px;">


                <asp:HyperLink ID="HLMovie" runat="server" CssClass="h3" Font-Bold="True" NavigateUrl='<%#Eval("MovieID", "~/Movie.aspx?MovieID={0}")  %>'>
                    <asp:Image ID="MovieImg" CssClass="img-responsive" runat="server" ImageUrl='<%# string.Format("~/Posters/{0}.jpg", Eval("MoviePoster")) %>' Height="530px" />
<%--                    <img class="img-responsive"  src="/Posters/<%#Eval("MoviePoster")%>.jpg") height="530"/>--%>
                    <h3><%#Eval("MovieTitle")%></h3>
                </asp:HyperLink>

            </div>
        </ItemTemplate>


    </asp:Repeater>
</asp:Content>
